package com.struts.property.driver.action;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class PropertyDriverAction extends ActionSupport{
	
	private String username ;
	private String password ;
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String propertyDriver() {
		System.out.println(username);
		System.out.println(password);
		//改变对象栈栈顶username属性的值
//		ActionContext.getContext().getValueStack().setParameter("username", "被改变了");
		ActionContext.getContext().getValueStack().setValue("username", "被改变了");
		return SUCCESS ;
	}

}
